<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title>title</title>
		<link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <style>
		 #header{
		 	background-color: #005A93;
		 }
		</style>
	</head>
	<body>
		<header class="aui-bar aui-bar-nav" id="header">
			<a class="aui-pull-left aui-btn" onclick="api.closeWin();"> <span class="aui-iconfont aui-icon-left"></span> </a>
			<div class="aui-title" id="title" style="font-size:18px;">
				外链
			</div>
		</header>
	</body>
	<script type="text/javascript" src="../script/api.js"></script>
	<script type="text/javascript">
		apiready = function() {
			var header = $api.byId('header');
			$api.fixStatusBar(header);
			var header = $api.offset(header).h;
			$api.text($api.byId("title"), api.pageParam.name);
			api.openFrame({// 打开Frame
				name : 'fram',
				url : api.pageParam.url,
				rect : {
					x : 0,
					y : header, // 头部留位置
					w : 'auto',
					h : api.winHeight - header
				},
				bounces : true,
				vScrollBarEnabled : false
			});
		};
	</script>
</html>
